package jpane;

import java.awt.*;
import java.applet.*;

public class ShowsTextExample extends Applet{ 
	
	public void paint(Graphics g){      
		g.setColor(Color.black);       
		g.drawString("Name:",10,10);
		
		g.setFont(new Font("Monotype Corsiva",Font.BOLD,20));        
		g.setColor(Color.red);       
		g.setFont(new Font("Monotype Corsiva",Font.BOLD,20));        
		g.drawString("Rose",100,10);
		
		
		g.setColor(Color.black);       
		g.drawString("Age:",10,40);
		
		
		g.setFont(new Font("Monotype Corsiva",Font.BOLD,20));        
		g.setColor(Color.blue);       
		g.setFont(new Font("Monotype Corsiva",Font.BOLD,20));        
		g.drawString("20",100,40);
		
		
		g.setColor(Color.black);       
		g.drawString("Nationality:",10,70);
		
		
		g.setFont(new Font("Monotype Corsiva",Font.BOLD,20));        
		g.setColor(Color.green);       
		g.setFont(new Font("Monotype Corsiva",Font.BOLD,20));        
		g.drawString("20",100,70); 
		}
	}
